package com.java.module.user.domain.dto;

import javax.validation.constraints.NotBlank;

import com.java.common.lang.annotation.Encrypt;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 修改登录密码
 *
 * @author zt
 */
@ApiModel(value = "修改登录密码")
@Encrypt
public class ChangeLoginPwdDTO {

    /**
     * 用户原密码
     */
    @ApiModelProperty(value = "用户原密码（RSA加密）", required = true, position = 2)
    @NotBlank(message = "用户原密码不能为空")
    @Encrypt
    private String rawPassword;
    /**
     * 用户密码
     */
    @ApiModelProperty(value = "登录密码（RSA加密）", required = true, position = 2)
    @NotBlank(message = "密码不能为空")
    @Encrypt
    private String password;

    /**
     * 确认密码
     */
    @ApiModelProperty(value = "确认密码（RSA加密）", required = true, position = 2)
    @NotBlank(message = "确认密码不能为空")
    @Encrypt
    private String rePassword;

    public String getRawPassword() {
        return rawPassword;
    }

    public void setRawPassword(String rawPassword) {
        this.rawPassword = rawPassword;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRePassword() {
        return rePassword;
    }

    public void setRePassword(String rePassword) {
        this.rePassword = rePassword;
    }

    @Override
    public String toString() {
        return "ChangeLoginPwdDTO{" + "rawPassword='" + rawPassword + '\'' + ", password='" + password + '\''
                + ", rePassword='" + rePassword + '\'' + '}';
    }

}